package com;

public class Thoroughbred {
    // 属性
    private String mother;
    private String father;
    private int birthYear;

    // 构造函数
    public Thoroughbred(String mother, String father, int birthYear) {
        this.mother = mother;
        this.father = father;
        this.birthYear = birthYear;
    }

    // 获取当前年龄的方法
    public int getCurrentAge() {
        return 2025 - birthYear; // 假设当前年份为2025年
    }

    // 获取父系信息的方法
    public String getFather() {
        return father;
    }

    // 获取母系信息的方法
    public String getMother() {
        return mother;
    }

    // 主函数，用于测试
    public static void main(String[] args) {
        Thoroughbred horse = new Thoroughbred("Horse A", "Horse B", 2010);
        System.out.println("Mother: " + horse.getMother());
        System.out.println("Father: " + horse.getFather());
        System.out.println("Current Age: " + horse.getCurrentAge());
    }
}
